SRC=src/*.c
MAIN=main/main.c
INC=-I ./include/
TAR=bin/project1.exe
CC=arm-linux-gcc
LIBA=-L ./lib/liba -lcalcul
LIBSO=-L ./lib/libso -lcalcul

.PHONY: $(TAR) clean run   #伪指令

all:clean $(TAR) run       #清除 编译 运行

$(TAR):$(SRC) $(MAIN)
	gcc $^ -o $@ $(INC) $(LIBSO)


clean:
	rm $(TAR)
	@echo "清除完成"

run:
	./$(TAR)
	@echo "运行完成"

